﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JCPogi.Core.Helpers;

namespace JCPogi.Core {
    
    public class DeviceCommandResult {

        static DeviceCommandResult() {
            Successful = new DeviceCommandResult();
        }

        public static DeviceCommandResult Successful { get; private set; }

        public DeviceCommandResult() { }

        public DeviceCommandResult(string errorMessage) {
            ErrorMessage = errorMessage;
        }

        public bool IsSuccessful {
            get {
                return ErrorMessage.IsNullOrEmpty();
            }
        }

        public string ErrorMessage { get; internal set; }

    }
}
